﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Drawing.Drawing2D;

namespace FACUI.BasicClass
{
    public class MapSet
    {
        private ClassBase _offsetX = new ClassBase(0);
        private ClassBase _offsetY = new ClassBase(0);
        private ClassBase _showGrid = new ClassBase(true);
        public Color defaultBgColor;
        public Font defaultFont;
        public Color defaultTxtColor;
        public Pen gridPen;
        public Size gridsize = new Size(10, 10);
        public Point leftTop;
        public Pen linePen;
        public int lineWidth;
        public Size mapsize = new Size(0x3e8, 700);
        public string name;
        public Size oraGridsize;
        public Size oraMapsize;
        public Pen perLinePen;
        public int scale = 100;

        public MapSet()
        {
            this.showGrid = true;
            this.leftTop = new Point(0, 0);
            this.defaultFont = new Font("宋体", 20f);
            this.defaultTxtColor = Color.White;
            this.defaultBgColor = Color.Black;
            this.name = "NEW";
            this.linePen = new Pen(this.defaultTxtColor, 2f);
            this.perLinePen = new Pen(Color.Green, 1f);
            this.perLinePen.DashStyle = DashStyle.DashDot;
            this.gridPen = new Pen(Color.Blue, 1f);
            this.offset = new Point(-100, -100);
        }

        public Point offset
        {
            get
            {
                return new Point((int)this._offsetX.value, (int)this._offsetY.value);
            }
            set
            {
                this._offsetX.value = value.X;
                this._offsetY.value = value.Y;
            }
        }

        public int offsetX
        {
            get
            {
                return (int)this._offsetX.value;
            }
            set
            {
                this._offsetX.value = value;
            }
        }

        public int offsetY
        {
            get
            {
                return (int)this._offsetY.value;
            }
            set
            {
                this._offsetY.value = value;
            }
        }

        public bool showGrid
        {
            get
            {
                return (bool)this._showGrid.value;
            }
            set
            {
                this._showGrid.value = value;
            }
        }
    }
}

